-- GENERATED SPELL FOR [Bloodscalp Scavenger] --


function spell0_702(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_702', 614, 1)
end

function spell1_702(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_702', 559, 1)
end

function spell2_702(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_702', 30000, 1)
end

function Sorts_702(pUnit, Event)
local choix_sorts_702 = math.random(0, 2)
if choix_sorts_702 == 0 then
pUnit:RegisterEvent('spell0_702', 1, 1)
end
if choix_sorts_702 == 1 then
pUnit:RegisterEvent('spell1_702', 1, 1)
end
if choix_sorts_702 == 2 then
pUnit:RegisterEvent('spell2_702', 1, 1)
end
end

function mob702_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_702', math.random(1500, 3000), 1)
end

function mob702_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob702_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob702_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(702, 1, 'mob702_Action')
RegisterUnitEvent(702, 2, 'mob702_Leave')
RegisterUnitEvent(702, 3, 'mob702_Kill')
RegisterUnitEvent(702, 4, 'mob702_Die')
